package com.my.study.redis;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerRedis {

    public static void main(String[] args) {

        try {
            ServerSocket server = new ServerSocket(6379);
            Socket res = server.accept();
            byte [] result = new byte[1024];
            res.getInputStream().read(result);
            System.out.println(result.toString());

        }catch (IOException e){

        }
    }
}
